import request from '@/utils/request'

export function fetchReservationList(query) {
  return request({
    url: '/makeup/reservation/list',
    method: 'get',
    params: query
  })
}

export function getReservationInfo(id) {
  return request({
    url: '/makeup/reservation/info/' + id,
    method: 'get',
  })
}

export function createReservation(data) {
  return request({
    url: '/makeup/reservation/save',
    method: 'post',
    data: data
  })
}

export function updateReservation(data) {
  return request({
    url: '/makeup/reservation/update',
    method: 'post',
    data: data
  })
}

export function deleteReservation(data) {
  return request({
    url: '/makeup/reservation/delete',
    method: 'post',
    data: data
  })
}